package com.szp.lg.blog.config.props;

import com.alibaba.fastjson.annotation.JSONField;
import org.springframework.boot.context.properties.ConfigurationProperties;

//spring.datasource.url=jdbc:mysql://localhost:3306/blog_system?serverTimezone=UTC
//spring.datasource.username=root
//spring.datasource.password=123456
@ConfigurationProperties(prefix = "spring.datasource")
public class DataSourceProps {
    @JSONField(name="url")
    String url;
    @JSONField(name="username")
    String username;
    @JSONField(name="password")
    String password;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
